#例9-7使用readline ()方法读取文本文件
with open("studentinfo.txt",mode='r') as f1:
    line=f1.readline()
    while line:
        line=line.rstrip('\n')
        print(line)
    line=f1.readline()
